using FluentNHibernate.Mapping;
using Munim.Fame.Core.DomainModels;

namespace Munim.Fame.DataAccess.NHibernate.Mapping
{
    public sealed class RentMap : ClassMap<Rent>
    {
        public RentMap()
        {
            Id(m => m.Id);
            Map(m => m.RentedDate);
            References(m => m.Member).LazyLoad();
            HasMany(m => m.Media).Table("RentDetails").ExtraLazyLoad();
        }
    }
}